package mk.basic;

public class J01_Professor {

	public static void main(String[] args) {
		// 1. 변수 선언 및 초기화
				String profno; 
				String name;
				String major;
								        
				String profno1; 
				String name1;
				String major1;
				
				String profno2; 
				String name2;
				String major2;
				
				String profno3; 
				String name3;
				String major3;
				
				
				     
		        
		        profno="301";
			    name="이순신";
				major="프로그래밍";
				
				profno1="445";
				name1="정약용";
				major1="의상디자인";
				
				profno2="556";
				name2="김유신";
				major2="식품영양";
				
				profno3="504";
				name3="이성계";
				major3="철학";

				// 2. 처리
				
				// 3. 결과 출력
				System.out.println("교수번호\t이름\t전공분야");
				System.out.println("--------------------------");
		        System.out.print(profno);
		        System.out.print("\t" + name);
		        System.out.println("\t" + major);

		        System.out.println("--------------------------");
		        System.out.print(profno1);
		        System.out.print("\t" + name1);
		        System.out.println("\t" + major1);
		        
		        System.out.println("---------------------------");
		        System.out.print(profno2);
		        System.out.print("\t" + name2);
		        System.out.println("\t" + major2);
		        
		        System.out.println("--------------------------");
		        System.out.print(profno3);
		        System.out.print("\t" + name3);
		        System.out.println("\t" + major3);

	}

}
